import {BrowserModule} from '@angular/platform-browser';
import {NgModule} from '@angular/core';

import {AppRoutingModule} from './app-routing.module';
import {AppComponent} from './app.component';
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
import {ListenService} from './services/listen.service';
import {ElModule} from 'element-angular';

@NgModule({
    declarations: [
        AppComponent
    ],
    imports: [
        BrowserModule,
        AppRoutingModule,
        BrowserAnimationsModule, // 只能写在跟模块，动画需要
        ElModule.forRoot()
    ],
    providers: [
        ListenService
    ],
    bootstrap: [AppComponent]
})
export class AppModule {
}
